package cn.hxth.cloud.api.common.util;

/*
import cn.hxth.cloud.api.domain.Product;
import cn.hxth.cloud.api.domain.ProductionOrder;
import cn.hxth.cloud.api.domain.Turnoff;
import cn.hxth.cloud.api.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
@Component
public class MOckTurnoff {
    @Autowired
    private ProductMapper productMapper ;

    public List<Turnoff> get(ProductionOrder productionOrder){
        List<Turnoff> turnoffs = new ArrayList<>() ;
        Product product = productMapper.selectByPrimaryKey(productionOrder.getPid());
        int[] array ={1,2,3,4,5,6} ;
        Random random = new Random() ;
        for(int i =1 ; i<= productionOrder.getPlanCount(); i++){
            Turnoff turnoff = new Turnoff() ;
            turnoff.setOid(productionOrder.getId());
            int flag =  array[random.nextInt(2)] ;
            if (flag ==1){

            }

        }

    }
}
*/
